import { request } from '@/utils/request'

export function count(data) {
    return request({
        url: '/api/warranty/count',
        method: 'post',
        data
    })
}
export function page(params) {
    return request({
        url: '/api/warranty/page',
        params,
    })
}

export function create(data) {
    return request({
        url: '/api/warranty/create',
        method: 'post',
        data
    })
}

export function update(data) {
    return request({
        url: '/api/warranty/update',
        method: 'post',
        data
    })
}

export function repairDelete(data) {
    return request({
        url: '/api/warranty/delete',
        method: 'post',
        data
    })
}

export function today() {
    return request({
        url: '/api/warranty/today',
        method: 'get',
    })
}

export function every() {
    return request({
        url: '/api/warranty/every',
        method: 'get',
    })
}
export function checkrepair(data) {
    return request({
        url: '/api/warranty/checkrepair',
        method: 'post',
        data
    })
}